package com.boredom.Guts;

import java.util.LinkedList;
import android.location.Location;

/**
 * An Event is a gathering at a particular place
 *
 * Events are created by users who want others to be able to find them.
 */
public class Event implements Serializable {

    private String group;
    private String name;
    private String description;
    /**
     * Physical location of the Event, to be shown on Google Maps window.
     */
    private Location place;
    private byte[] signature;

    /**
     * Empty constructor. Creates an unusable Event. Use this only if
     * you are about to deserialize this Event.
     */
    public Event() {
    }

    /**
     * Constructor creating a visible Event
     *
     * Has the side effect of adding the Event to Event.all
     *
     * @param place An android.location.Location representing where the
     *  Event is, physically
     */
    public Event(Group group, String name, String description, Location place) {
	this.group = group.getName();
	this.name = name;
	this.description = description;
	this.place = place;
	this.signature = group.sign(this);
    }

    public String getGroup() {
	return group;
    }

    public String getName() {
	return name;
    }

    public String getDescription() {
	return description;
    }

    public void setDescription(String description) {
	this.description = description;
    }

    public Location getLocation() {
	return place;
    }

    public void setLocation(Location location) {
	this.place = location;
    }
}
